﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0066)http://blog.csdn.net/cyberworm_008/archive/2008/11/07/3250631.aspx -->
<HTML xmlns="http://www.w3.org/1999/xhtml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:v = 
"urn:schemas-microsoft-com:vml"><HEAD><TITLE>优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT 
src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/jquery-1.2.3.pack.js" 
type=text/javascript></SCRIPT>

<SCRIPT 
src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/jquery.highlighter.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/highlighter.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/common.js" 
type=text/javascript></SCRIPT>
<LINK media=all 
href="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/Cogitation_1.css" 
type=text/css rel=stylesheet><LINK media=all 
href="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/csdn_favbykimi.css" 
type=text/css rel=stylesheet><LINK 
href="http://profile.csdn.net/cyberworm_008/picture/1.ico" 
rel="Shortcut Icon"><LINK title=RSS 
href="http://feeds.feedsky.com/csdn.net/cyberworm_008" type=application/rss+xml 
rel=alternate>
<META content="MSHTML 6.00.2900.5848" name=GENERATOR></HEAD>
<BODY id=defaultuser>
<DIV id=csdnblog_allwrap>
<DIV id=csdnblog_midwrap>
<DIV id=csdnblog_header>
<H1><A href="http://blog.csdn.net/cyberworm_008">cyberworm_008的专栏</A></H1>
<H2></H2>
<UL id=personalnav>
  <LI style="DISPLAY: none"><A id=a_login 
  href="http://passport.csdn.net/UserLogin.aspx">登录</A> </LI>
  <LI style="DISPLAY: none"><A id=a_register 
  href="http://passport.csdn.net/CSDNUserRegister.aspx">注册</A> </LI>
  <LI style="DISPLAY: none"><A id=a_welcome href="http://hi.csdn.net/" 
  target=_blank>欢迎</A> </LI>
  <LI style="DISPLAY: none"><A id=a_exit 
  href="http://writeblog.csdn.net/Signout.aspx">退出</A> </LI>
  <LI style="DISPLAY: none"><A id=a_myblog href="http://blog.csdn.net/">我的博客</A> 
  </LI>
  <LI style="DISPLAY: none"><A id=a_configure 
  href="http://writeblog.csdn.net/configure.aspx" target=_blank>配置</A> </LI>
  <LI style="DISPLAY: none"><A id=a_postedit 
  href="http://writeblog.csdn.net/PostEditPlain.aspx" target=_blank>写文章</A> 
</LI>
  <LI style="DISPLAY: none"><A id=a_postlist 
  href="http://writeblog.csdn.net/PostList.aspx" target=_blank>文章管理</A> </LI>
  <LI style="DISPLAY: none"><A id=a_bloghome href="http://blog.csdn.net/" 
  target=_blank>博客首页</A> </LI></UL>
<UL id=blogsearchsty>
  <LI><INPUT class=bolgsearch id=inputSearch> </LI>
  <LI class=selectsty><SELECT id=Search_ddlSearchScope 
  name=Search:ddlSearchScope> <OPTION value=all selected>全站</OPTION> <OPTION 
    value=cyberworm_008>当前博客</OPTION></SELECT> </LI>
  <LI><INPUT class=bolggobtn id=buttonSearch type=button value=搜索> </LI></UL>
<UL id=menu>
  <LI><A href="http://hi.csdn.net/cyberworm_008">空间</A> </LI>
  <LI><A class=on href="http://blog.csdn.net/cyberworm_008">博客</A> </LI>
  <LI><A 
  href="http://hi.csdn.net/cyberworm_008/profile/contactlist/1.html">好友</A> 
</LI>
  <LI><A href="http://album.hi.csdn.net/views/albums/cyberworm_008" 
  target=_blank>相册</A> </LI>
  <LI><A class=last 
  href="http://hi.csdn.net/cyberworm_008/profile/notebook/1.html">留言</A> 
</LI></UL></DIV>
<SCRIPT type=text/javascript>
	var CurrentUserName = 'cyberworm_008';
</SCRIPT>

<DIV id=csdnblog_sidebar>
<DIV class=gutter>
<DIV class=aboutauthor>
<DL>
  <DT>用户操作 
  <DD class=middle><A 
  href="http://hi.csdn.net/Admin/WriteMessage.aspx?Receiver=cyberworm_008" 
  target=_blank>[发私信]</A>&nbsp; <A 
  href="http://webim.csdn.net/AddFriends/cyberworm_008.ashx" 
  target=_blank>[加为好友]</A>&nbsp; <SPAN id=userInfo></SPAN><SPAN 
  id=SubscriptionList>
  <DT>订阅我的博客 
  <DD><A href="http://feeds.feedsky.com/csdn.net/cyberworm_008"><IMG alt=XML聚合 
  src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/gif.gif" border=0> 
  </A>&nbsp;&nbsp; <A href="http://feeds.feedsky.com/csdn.net/cyberworm_008" 
  target=_blank><IMG alt=FeedSky 
  src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/feedsky.gif" border=0> 
  </A>
  <DD><A 
  href="http://www.xianguo.com/subscribe.php?url=http://feeds.feedsky.com/csdn.net/cyberworm_008" 
  target=_blank><IMG alt=订阅到鲜果 
  src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss_xianguo.jpg" 
  border=0> </A>
  <DD><A 
  href="http://fusion.google.com/add?feedurl=http://feeds.feedsky.com/csdn.net/cyberworm_008" 
  target=_blank><IMG alt=订阅到Google 
  src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss_google.gif" 
  border=0> </A>
  <DD><A 
  href="http://www.zhuaxia.com/add_channel.php?url=http://feeds.feedsky.com/csdn.net/cyberworm_008" 
  target=_blank><IMG alt=订阅到抓虾 
  src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss_zhuaxia.gif" 
  border=0> </A></SPAN>
  <DT>cyberworm_008的公告 
  <DD>
  <DT>文章分类 
  <DD>
  <DIV class=publiclist_sidebar>
  <UL>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/category/478864.aspx/rss"><IMG 
    alt=(RSS) 
    src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss.gif"></A><A 
    href="http://blog.csdn.net/cyberworm_008/category/478864.aspx">ARM/DSP/FPGA</A>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/category/478863.aspx/rss"><IMG 
    alt=(RSS) 
    src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss.gif"></A><A 
    href="http://blog.csdn.net/cyberworm_008/category/478863.aspx">ASM/C/C++/JAVA</A>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/category/478867.aspx/rss"><IMG 
    alt=(RSS) 
    src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss.gif"></A><A 
    href="http://blog.csdn.net/cyberworm_008/category/478867.aspx">uCOS/winCE/Linux</A>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/category/478870.aspx/rss"><IMG 
    alt=(RSS) 
    src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss.gif"></A><A 
    href="http://blog.csdn.net/cyberworm_008/category/478870.aspx">模拟/逻辑硬件相关</A>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/category/478869.aspx/rss"><IMG 
    alt=(RSS) 
    src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss.gif"></A><A 
    href="http://blog.csdn.net/cyberworm_008/category/478869.aspx">其它</A>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/category/478866.aspx/rss"><IMG 
    alt=(RSS) 
    src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss.gif"></A><A 
    href="http://blog.csdn.net/cyberworm_008/category/478866.aspx">通信技术</A>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/category/478868.aspx/rss"><IMG 
    alt=(RSS) 
    src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/rss.gif"></A><A 
    href="http://blog.csdn.net/cyberworm_008/category/478868.aspx">外设驱动</A></LI></UL></DIV>
  <DT>存档 
  <DD>
  <DIV class=publiclist_sidebar>
  <UL>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/archive/2008/11.aspx">2008年11月(5)</A>
    <LI><A 
    href="http://blog.csdn.net/cyberworm_008/archive/2008/10.aspx">2008年10月(1)</A></LI></UL></DIV></DD></DL></DIV></DIV></DIV>
<DIV id=csdnblog_content>
<DIV class=gutter>
<DIV class=default_contents>
<DIV class=user_article>
<SCRIPT 
src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/LoadFeedbackCount.js" 
type=text/javascript></SCRIPT>

<H1 class=title_txt><IMG height=16 alt=原创 
src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/authorship.gif" width=15 
border=0>&nbsp; 优龙YLP2440开发板点滴 <CITE class=fav_csdnstylebykimi><A 
class=fav_csdnstylebykimi title=收藏到我的网摘中，并分享给我的朋友 
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(saveit=window.open('http://wz.csdn.net/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'saveit','scrollbars=no,width=590,height=300,left=75,top=20,status=no,resizable=yes'));saveit.focus();">收藏</A> 
</CITE></H1>
<DIV class=blogstory>
<SCRIPT type=text/javascript>
						document.body.oncopy = function() {
							if (window.clipboardData) {
								setTimeout(function() {
									var text = clipboardData.getData("text"); 
									if (text && text.length>300) {
										text = text + "\r\n\n本文来自CSDN博客，转载请标明出处：" + location.href;
										clipboardData.setData("text", text); 
									}
								}, 100);
							}
						}
					</SCRIPT>

<SCRIPT type=text/javascript>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</SCRIPT>

<P><FONT size=1>&nbsp;&nbsp;</FONT><SPAN lang=EN-US><FONT 
face="Times New Roman"><A onclick="javascript:tagshow(event, 'ARM');" 
href="javascript:;" target=_self><U><STRONG><FONT size=3><FONT 
color=#000066>ARM</FONT></STRONG></U></A> Jtag</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">调试时，默认</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">AXD</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">并不会初始化</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（这也难怪，</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">AXD</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">并不知道板子的连线情况），因此在把代码下到</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">调试之前需要进行初始化。可以利用</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">NAND</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中已有的</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">bootloader</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来实现</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">初始化：先复位</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">JTAG</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，然后复位板子，看到</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SD</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">卡旁的</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">LED</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">闪烁了就说明</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">bootloader</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经运行了，</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">也可用了。也可以让</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">AXD</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">JTAG</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配置</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">2440</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制寄存器实现对</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的初始化，引用别人的；劳动成果：</SPAN></FONT></P><FONT 
size=3><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
<P 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #f6f6f6; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; TEXT-INDENT: 18pt; LINE-HEIGHT: 18pt; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; mso-border-alt: solid windowtext 1.0pt; mso-padding-alt: 1.0pt 4.0pt 0cm 4.0pt"><STRONG><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">通过</SPAN></STRONG><STRONG><SPAN 
lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">axd</SPAN></STRONG><STRONG><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">命令行对目标板进行设置</SPAN></STRONG><SPAN 
lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #f6f6f6; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; TEXT-INDENT: 18pt; LINE-HEIGHT: 18pt; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; mso-border-alt: solid windowtext 1.0pt; mso-padding-alt: 1.0pt 4.0pt 0cm 4.0pt"><SPAN 
lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>因为我用的</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">yl</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>的</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">2440</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>板是配置为</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">nand</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>启动的，</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">sdram</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>是在</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">0x30000000</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>地址的，所以需要先对存储器控制寄存器进行设置，在</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">axd</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>下设置方法是：选</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">systems 
views-&gt;command lines interface</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>，输入如下命令对寄存器设置</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>地址</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>值</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>长度</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial"><BR>setmem 
0x53000000, 0x00000000,&nbsp; 32<BR></SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>还可以将要设置的寄存器写入一个文件，在命令行用</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">ob(obey) 
config.ini</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>即可批量执行设置指令或在</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">options-&gt;Configure 
Interface</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>中做如下设置</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial"><BR><v:shapetype 
id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" 
o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke 
joinstyle="miter"></v:stroke><v:formulas><v:f 
eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f 
eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f 
eqn="prod @3 21600 pixelWidth"></v:f><v:f 
eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f 
eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f 
eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f 
eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" 
gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" 
v:ext="edit"></o:lock></v:shapetype><v:shape id=_x0000_i1025 
style="WIDTH: 267pt; HEIGHT: 255pt" type="#_x0000_t75"><v:imagedata o:title="" 
src="file:///C:\DOCUME~1\guchen\LOCALS~1\Temp\msohtml1\01\clip_image001.png"><FONT 
face=宋体></FONT></v:imagedata></v:shape><BR></SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>我的</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">config</SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>文件内容如下：</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial"><BR>setmem 
0x53000000, 0x00000000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x4a000008, 
0xffffffff,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
32<BR>setmem 0x4a00001c, 
0x00007fff,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000000, 0x2212d110,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000004, 0x00000f40,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000008, 0x00002e50,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x4800000c, 0x00002e50,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000010, 0x00002e50,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000014, 0x00002e50,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000018, 0x00002e50,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x4800001c, 0x00018005,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000020, 0x00018005,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000024, 0x00960542,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000028, 0x00000032,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x4800002c, 0x00000030,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR>setmem 
0x48000030, 0x00000030,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32<BR></SPAN><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><FONT 
face=宋体>如果设置正确则开发版的</FONT></SPAN><SPAN lang=EN-US 
style="FONT-SIZE: 9pt; COLOR: #111111; FONT-FAMILY: Arial">SDRAM</SPAN><FONT 
face=宋体><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">生效，则可以加载目标代码了</SPAN></FONT></P>
<P 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #f6f6f6; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; TEXT-INDENT: 18pt; LINE-HEIGHT: 18pt; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; mso-border-alt: solid windowtext 1.0pt; mso-padding-alt: 1.0pt 4.0pt 0cm 4.0pt"><FONT 
face=宋体><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"></SPAN></FONT>&nbsp;</P>
<P 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #f6f6f6; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; TEXT-INDENT: 18pt; LINE-HEIGHT: 18pt; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; mso-border-alt: solid windowtext 1.0pt; mso-padding-alt: 1.0pt 4.0pt 0cm 4.0pt"><FONT 
face=宋体><FONT size=3><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">工程设置</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">RO_base</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">Imgae entry point</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">都为</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">0x30100000</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，实测表明无论把</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">bin</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文件下载到</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">SDRAM</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的任何地方都可以正常执行（当然是通过</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">BIOS</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下载并移交控制权的），工程设置中将</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">2440init.o</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">定位在映象的最前面，因此</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">2440init.S</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不仅负责</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">C</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码的搬移工作而且它的执行是地址无关的。</SPAN></SPAN></FONT></FONT></P>
<P 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #f6f6f6; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; TEXT-INDENT: 18pt; LINE-HEIGHT: 18pt; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; mso-border-alt: solid windowtext 1.0pt; mso-padding-alt: 1.0pt 4.0pt 0cm 4.0pt"><FONT 
face=宋体><FONT size=3><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以上恰恰说明了刚买来板子的时候可以用JLINK直接跑起来而不需要在AXD中输入SDRAM初始化命令（那个时候还不知道SDRAM要初始化，只是看到<SPAN 
lang=EN-US><FONT 
face="Times New Roman">2440init.o中有对SDRAM的初始化</FONT></SPAN>）或者通过写一个固定txt文件来针对板子初始化。</SPAN></SPAN></FONT></FONT></P>
<P 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #f6f6f6; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; TEXT-INDENT: 18pt; LINE-HEIGHT: 18pt; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; mso-border-alt: solid windowtext 1.0pt; mso-padding-alt: 1.0pt 4.0pt 0cm 4.0pt"><FONT 
face=宋体><FONT size=3><SPAN 
style="FONT-SIZE: 9pt; COLOR: #111111; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN></SPAN></FONT></FONT>&nbsp;</P></SPAN></FONT>
<P class="right articalinfo">发表于 @ 2008年11月07日　22:42:00&nbsp;| <A id=a_comment 
title=评论 
href="http://blog.csdn.net/cyberworm_008/archive/2008/11/07/3250631.aspx#FeedBack">评论( 
<SPAN id=FeedbackCount_3250631>loading...</SPAN>
<SCRIPT type=text/javascript>
								AddFeedbackCountStack("3250631")
							</SCRIPT>
 ) </A>| <SPAN style="DISPLAY: none"><A id=a_postedit title=编辑 
href="http://writeblog.csdn.net/PostEdit.aspx?entryId=3250631">编辑</A>|</SPAN> <A 
href="mailto:yuexn@csdn.net?subject=Article Report!!!&amp;body=Author:cyberworm_008URL:http://blog.csdn.net/ArticleContent.aspx?UserName=cyberworm_008&amp;Entryid=3250631">举报</A>| 
<CITE class=fav_csdnstylebykimi><A class=fav_csdnstylebykimi 
title=收藏到我的网摘中，并分享给我的朋友 
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(saveit=window.open('http://wz.csdn.net/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'saveit','scrollbars=no,width=590,height=300,left=75,top=20,status=no,resizable=yes'));saveit.focus();">收藏</A> 
</CITE></P><SPAN id=Post.ascx_ViewPost_PreviousAndNextEntriesDown>
<H3 class=pagego><A 
href="http://blog.csdn.net/cyberworm_008/archive/2008/11/07/3250537.aspx">旧一篇:ARM 
JTAG仿真器调试方法之SDRAM篇</A>&nbsp;|&nbsp;<A 
href="http://blog.csdn.net/cyberworm_008/archive/2008/11/07/3250719.aspx">新一篇:C和C++函数的相互引用----C++中extern 
“C”含义深层探索[转载]</A></H3></SPAN></DIV></DIV><A name=FeedBack></A>
<DIV class=commentslist>
<SCRIPT type=text/javascript>
					var CurrentEntryId = '3250631';
				</SCRIPT>

<SCRIPT src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/feedback.js" 
type=text/javascript></SCRIPT>

<DIV id=commentslist></DIV></DIV>
<DIV class=spacecommment></DIV>
<SCRIPT type=text/javascript>
			LoadFeedbackCount();
			document.write("<img src='http://counter.csdn.net/pv.aspx?id=24' border=0 width=0 height=0>");
			</SCRIPT>
</DIV></DIV></DIV>
<DIV id=pubfooter>
<DL>
  <DT>
  <DD>Csdn Blog version 3.1a 
  <DD>Copyright © cyberworm_008 </DD></DL></DIV>
<SCRIPT src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/counter.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/ga.js" 
type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
try {
	var pageTracker = _gat._getTracker("UA-2688088-9");
	pageTracker._trackPageview();
} catch (err) { }
</SCRIPT>
</DIV></DIV><IMG height=0 
src="优龙YLP2440开发板点滴 - cyberworm_008的专栏 - CSDN博客.files/count.htm" width=0> 
</BODY></HTML>
